package com.lframework.starter.bpm.vo.flow.definition;

import com.lframework.starter.bpm.enums.FlowDefinitionActivityStatus;
import com.lframework.starter.web.core.components.validation.IsEnum;
import com.lframework.starter.web.core.vo.BaseVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class SetFlowDefinitionActivityStatusVo implements BaseVo, Serializable {

    public static final long serialVersionUID = 1L;

    /**
     * 流程定义ID
     */
    @ApiModelProperty(value = "流程定义ID", required = true)
    @NotNull(message = "流程定义ID不能为空！")
    private Long id;

    /**
     * 激活状态
     */
    @ApiModelProperty(value = "激活状态", required = true)
    @NotNull(message = "激活状态不能为空！")
    @IsEnum(enumClass = FlowDefinitionActivityStatus.class, message = "激活状态格式不正确！")
    private Integer activityStatus;
}
